package com.li.observerpattern;

/**
 * @author lirenchun
 */
public class ConcreteOberverOthe implements Observer {
    private String  name;

    public ConcreteOberverOthe(String name) {
        this.name = name;
    }

    @Override
    public void update() {
        System.out.println(name+"更新自己状态！");
    }
}
